package com.cloud.flowable.service.impl;

import jakarta.annotation.Resource;
import lombok.Getter;
import org.flowable.engine.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * flowAble 引擎注入封装
 */
@Component
@Getter
public class FlowServiceFactory {

    @Resource
    public RepositoryService repositoryService;

    /**
     * 流程运行服务
     */
    @Resource
    public RuntimeService runtimeService;

    /**
     * 身份验证
     */
    @Resource
    public IdentityService identityService;

    /**
     * 流程任务
     */
    @Resource
    public TaskService taskService;

    /**
     * 流程表单
     */
    @Resource
    public FormService formService;

    /**
     * 流程记录
     */
    @Resource
    public HistoryService historyService;

    @Resource
    public ManagementService managementService;

    @Qualifier("processEngine")
    @Resource
    public ProcessEngine processEngine;

}
